package com.ruoyi.shop.api;


import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.web.domain.AjaxResult;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * 用户服务
 * 
 * @author ruoyi
 */
@FeignClient(contextId = "remoteShopService", value ="che-shop")
public interface RemoteShopService {
    @GetMapping(value = "/manage/{id}")
    public AjaxResult getInfo(@PathVariable("id") Long id, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);


    @GetMapping(value = "/manage/findByPhone/{phone}")
    public AjaxResult findByPhone(@PathVariable("phone") String phone, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);

}